package com.ruoyi.salarydetails.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.domain.SalaryEmployee;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 薪资明细对象 salary_breakdown
 *
 * @author ruoyi
 * @date 2024-08-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(resultMap = "com.ruoyi.salarydetails.mapper.SalaryBreakdownMapper.SalaryBreakdownResult")
public class SalaryBreakdown extends BaseEntity
        {
private static final long serialVersionUID = 1L;

    /** id */
        @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 员工表_id */
            @Excel(name = "员工表_id")
    private Long employeeId;

    /** 底薪 */
            @Excel(name = "底薪")
    private BigDecimal salary;

    /** 绩效 */
            @Excel(name = "绩效")
    private BigDecimal performance;

    /** 奖金 */
            @Excel(name = "奖金")
    private BigDecimal bonus;

    /** 销售提成 */
            @Excel(name = "销售提成")
    private BigDecimal salesCommissions;

    /** 社保 */
            @Excel(name = "社保")
    private BigDecimal socialSecurity;

    /** 公积金 */
            @Excel(name = "公积金")
    private BigDecimal accumulationFund;

    /** 个人所得税 */
            @Excel(name = "个人所得税")
    private BigDecimal personalIncomeTax;

    /** 请假 */
            @Excel(name = "请假")
    private BigDecimal leaveMoney;

    /** 应发工资 */
            @Excel(name = "应发工资")
    private BigDecimal wagesShouldBePaid;

    /** 实发工资 */
            @Excel(name = "实发工资")
    private BigDecimal actualWages;

            private SalaryEmployee salaryEmployee;
            private String jobNum;

@Override
public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeId", getEmployeeId())
            .append("salary", getSalary())
            .append("performance", getPerformance())
            .append("bonus", getBonus())
            .append("salesCommissions", getSalesCommissions())
            .append("socialSecurity", getSocialSecurity())
            .append("accumulationFund", getAccumulationFund())
            .append("personalIncomeTax", getPersonalIncomeTax())
            .append("leaveMoney", getLeaveMoney())
            .append("wagesShouldBePaid", getWagesShouldBePaid())
            .append("actualWages", getActualWages())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
        .toString();
        }
        }